package com.whc.service;


import com.whc.dto.UserLoginDto;
import com.whc.dto.UserRegisterDto;
import com.whc.entity.User;
import com.whc.vo.FriendVo;
import com.whc.vo.UserPageVo;
import com.whc.vo.UserVo;

import javax.security.auth.login.LoginException;
import java.util.List;

/**
 * @author 韦红材
 * @ClassName UserService
 * @data 2024/09/15 16:10
 * @Version V1.0
 **/
public interface UserService {

    User Login(UserLoginDto userLoginDto);

    void Register(UserRegisterDto userRegisterDto);

    User getUserByName(String userName);

    UserPageVo getUserById(long userId);

    List<FriendVo> getAllFriends(Long pid);

    FriendVo getFriendById(Long userId);

    List<Integer> getAllUserId();

    void addUserMoney(long userid,double money);

    UserVo getUserVoById(Long userId);
}
